@import 'var.less';

.org-tree{
  .org-tree-children{
    position: relative;
    ul:only-of-type:before{
      height: 15px !important;
    }
  }
  .org-tree-children:not(:first-child) {
    li{position:relative;}
    li:before{
      position: absolute;top: 50%;left: 0;content: ' ';
      width: 15px;height: 1px;transform-origin: 0 0;transform: scaleY(0.5);
      border: 1px dashed @border-color-base;
      box-sizing: border-box;
    }
  }

  li{line-height: 16px;}
  // li.ivu-select-item-selected{background-color: transparent;}
  li.ivu-select-item-selected:after{line-height: 16px;}
  li~.org-tree-children {padding-left: 18px;}
  li~.org-tree-children:before{
    position: absolute;top: 0;left: 17px;content: ' ';
    width: 1px;height: 100%;transform-origin: 0 0;transform: scaleX(0.5);
    border: 1px dashed @border-color-base;
    box-sizing: border-box;
  }
  li~.org-tree-children:last-child:before{height: calc(~"100% - 15px");}

}